package com.snake.springboot.custom.dao.mybatis.mappers.base;

import com.snake.springboot.custom.dao.mybatis.entity.base.CustPointsExpireDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>商户积分-积分过期回收
 * 类{@code CustPointsExpireMapper}  </br>
 * @author yang.xt
 * 创建时间2025/5/5 18:00
 */
@Mapper
public interface CustPointsExpireMapper {

    int insertSelective(CustPointsExpireDO record);

    List<CustPointsExpireDO> queryByCustomId(String customId);

    int updateUsedPoints(@Param("custPointsExpireId") String custPointsExpireId, @Param("pointsUsed") BigDecimal pointsUsed, @Param("state") Integer state);

    List<CustPointsExpireDO> expire();

    int updatePointsRecycle(CustPointsExpireDO expireDO);
}
